{extend name="public:base" /}

{block name="css"}
<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css"/>
<link href="__ADMIN__/css/style.css" rel="stylesheet">{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <div class="box-item">
                        <div class="form-group row"><label class="col-sm-1 col-form-label">订单信息</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" value="订单号：{$info.order_sn}" readonly>
                            </div>

                            <div class="col-sm-3">
                                <input type="text" class="form-control" value="总金额：{$info.all_price}" readonly>
                            </div>

                            <div class="col-sm-3">
                                <input type="text" class="form-control" value="支付金额：{$info.pay_price}" readonly>
                            </div>
                        </div>
                    </div>

                    <div class="box-item">
                        <div class="form-group row">
                            <label class="col-sm-1 col-form-label"></label>
                            <div class="col-sm-3">
                                <select class="form-control" disabled>
                                    <option value="0" {$info[
                                    'status'] == 0 ? 'selected' : ''}>订单状态：待支付</option>
                                    <option value="1" {$info[
                                    'status'] == 1 ? 'selected' : ''}>订单状态：进行中</option>
                                    <option value="2" {$info[
                                    'status'] == 2 ? 'selected' : ''}>订单状态：已完成</option>
                                    <option value="3" {$info[
                                    'status'] == 3 ? 'selected' : ''}>订单状态：审核中</option>
                                    <option value="4" {$info[
                                    'status'] == 4 ? 'selected' : ''}>订单状态：已取消</option>
                                </select>
                            </div>

                            <div class="col-sm-3">
                                <select class="form-control" disabled>
                                    <option value="0" {$info[
                                    'pay_time'] == 0 ? 'selected' : ''}>支付状态：未支付</option>
                                    <option value="1" {$info[
                                    'pay_time'] > 0 ? 'selected' : ''}>支付状态：已支付</option>
                                </select>
                            </div>

                            <div class="col-sm-3">
                                <input type="text" class="form-control" value="支付时间：{$info.pay_time?timeFormat($info.pay_time):'未支付'}" readonly>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            {if $info.hospital_id > 0}
            <div class="ibox">
                <div class="ibox-content">
                    <div class="box-item">
                        <div class="form-group row"><label class="col-sm-1 col-form-label">医院信息</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" value="名称：{$hospital_info.name}" readonly>
                            </div>

                            <div class="col-sm-3">
                                <input type="text" class="form-control" value="省市：{$hospital_info.province_id|getProvinceName}-{$hospital_info.city_id|getCityName}" readonly>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {/if}

            <div class="ibox ">
                <div class="ibox-content">
                    <div class="box-item">
                        <div class="form-group row"><label class="col-sm-1 col-form-label">服务信息</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" value="名称：{$service_info.name}" readonly>
                            </div>

                            <div class="col-sm-3">
                                <input type="text" class="form-control" value="价格：{$service_info.price}" readonly>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
        </div>
    </div>
</div>{/block}

{block name='js'}
<script src="/static/layui/layui.js"></script>
<script src="/static/skuTable.js"></script>
<script type="text/javascript" src="__PLUG__/kindeditor/kindeditor-all.js"></script>
<script type="text/javascript">
    $(".changeStatus").change(function (e) {
        var after_status = $(this).val();
        if (after_status == 3) {
            $(".after_reason").show();
        } else {
            $(".after_reason").hide();
        }
        $(".after_reason").find('textarea').text('');
    })
</script>{/block}